// @ts-ignore
/* eslint-disable */
import { request } from 'umi';

/** 质效评估 记录 列表 POST */
export async function pageProof(options?: { [key: string]: any }) {
  return request<BaseResponseBean.responsePage<AssessProofData.ProofPage[]>>('/assess/proof/page', {
    method: 'POST',
    data: options || {},
  });
}

/** 质效评估 记录 保存 POST */
export async function selectProof(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<AssessProofData.SelectProof>>('/assess/proof/select', {
    method: 'POST',
    data: options || {},
  });
}

/** 质效评估 记录 保存 POST */
export async function saveProof(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<string>>('/assess/proof/save', {
    method: 'POST',
    data: options || {},
  });
}

/** 质效评估 记录 更新 POST */
export async function updateProof(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<string>>('/assess/proof/update', {
    method: 'POST',
    data: options || {},
  });
}

/** 质效评估 记录 删除 POST */
export async function deleteProof(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<string>>('/assess/proof/delete', {
    method: 'POST',
    data: options || {},
  });
}

/** 质效评估 记录 更 状态 新 POST */
export async function updateProofState(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<string>>('/assess/proof/update/state', {
    method: 'POST',
    data: options || {},
  });
}

/** 质效评估 来源列表 POST */
export async function searchTreeSource(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<AdminOrganizationData.Organization[]>>(
    '/assess/proof/page/init',
    {
      method: 'GET',
      data: options || {},
    },
  );
}

/**
 * 区域Area
 * @param options
 * @returns
 */
export async function treeAssessProofArea(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<AdminOrganizationData.Organization[]>>(
    '/assess/proof/area/tree',
    {
      method: 'POST',
      data: options || {},
    },
  );
}


/** 质效评估 数据统计 POST */
export async function ProofAnalysis(options?: { [key: string]: any }) {
  return request<BaseResponseBean.responsePage<AssessProofData.ProofPage[]>>('/assess/analysis/overview', {
    method: 'POST',
    data: options || {},
  });
}
